home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_2 / sfdrtime.zip / SFDRTIME.DOC < prev    next >
Text File  |  1991-03-17  |  3KB  |  50 lines

  1.  
  2.  
  3.                            SFDRTIME.EXE
  4.                                 by
  5.                            Carl Morvant
  6.  
  7. SFDRTIME.EXE will allow sysops to limit the time users have on doors.
  8. This program is a very basic program and requires two other files to
  9. run. The SFDOORS.DAT is the file Spitfire creates to pass information
  10. to the door program. This is the file that SFDRTIME.EXE will modify
  11. allowing the sysop to limit time on the door. The other file SFDRTIME.EXE
  12. needs to run is SFDRTIME.CFG. SFDRTIME.CFG tells SFDRTIME.EXE how much
  13. time to allow for the door. In the SF.BAT file move the SFDOORS.DAT
  14. file to the directory which the door is in. This will allow SFDRTIME.EXE
  15. to modify the copy of SFDOORS.DAT, not the original which is still in
  16. the C:\SF directory. When the user returns to the board, SPITFIRE will
  17. read the original SFDOORS.DAT file. Also if the door program has a
  18. line in a .cfg file that tells the door program where to look for
  19. SFDOORS.DAT, change it so the door program will look in the door's
  20. directory. Otherwise the door program will read the file in the C:\SF
  21. directory, and give the user the amount of time he has left on the board.
  22. The following is an example of what the SF.BAT file should look like.
  23.  
  24. :DOOR_A
  25.    REM DOOR A
  26.    COPY C:\SF\SFDOORS.DAT C:\SF\DOOR_A  <-COPY SFDOOR.DAT TO DOOR DIRECTORY
  27.    CD C:\SF\DOOR_A                      <-CHANGE TO DOOR DIRECTORY
  28.    SFDRTIME                             <-PROGRAM TO MODIFY SFDOORS.DAT FILE
  29.    DOOR PROGRAM                         <-ACTUAL DOOR PROGRAM
  30.    ERASE SFDOORS.DAT                    <-ERASING COPY OF SFDOORS.DAT
  31.    CD C:\SF                             <-RETURNING TO SF DIRECTORY
  32.    GOTO LOOP
  33. :DOOR_B
  34.  
  35. There is a sample SFDRTIME.CFG file that limits the users to 10 minutes.
  36. The SFDRTIME.CFG file is a one line file with the amount of minutes
  37. you wish to allow for the door. The maximun amount of time allowed is 999.
  38. But the program cannot add more time to the SFDOORS.DAT file. If the user
  39. has 5 minutes left on the board, and the SFDRTIME.CFG file is set up for 10.
  40. The user will get 5 minutes. So 999 minutes is an unreal number.
  41. I put a three number limit on this file. The SFDRTIME.CFG file can be longer
  42. that 3 numbers. If your file is longer that three numbers the program
  43. will ignore anything else.
  44.  
  45. Any question or comments can be directed to me at my board,
  46. The Littlest BBS in Town, Luling, La, (504) 785-1848, 300/1200/2400.
  47. Also I can be reached through the RIME network by routing a message
  48. to me at my NodeId: LITTLEST.
  49. Carl Morvant
  50.